<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TSlideView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_slide_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TSlideView类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TSlideView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_slide_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa354b24970d3d75133178e681233612c"><td class="memItemLeft" align="right" valign="top"><a id="aa354b24970d3d75133178e681233612c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlideView</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aa354b24970d3d75133178e681233612c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54630e00e2090d083a72e0e4dbf915aa"><td class="memItemLeft" align="right" valign="top"><a id="a54630e00e2090d083a72e0e4dbf915aa"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlideView</b> (const slide_view_t *nativeObj)</td></tr>
<tr class="separator:a54630e00e2090d083a72e0e4dbf915aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa44d24db7ac57f65db9c074d898aac72"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#aa44d24db7ac57f65db9c074d898aac72">SetAutoPlay</a> (uint16_t auto_play)</td></tr>
<tr class="separator:aa44d24db7ac57f65db9c074d898aac72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14cd62b4ea83f3356436859930c530a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#af14cd62b4ea83f3356436859930c530a">SetActive</a> (uint32_t index)</td></tr>
<tr class="separator:af14cd62b4ea83f3356436859930c530a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff63bd31dedd512330e4ca28d56675b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#aeff63bd31dedd512330e4ca28d56675b">SetActiveEx</a> (uint32_t index, bool animate)</td></tr>
<tr class="separator:aeff63bd31dedd512330e4ca28d56675b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4669a034a42c7f3d9ccafdb931729b8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#ae4669a034a42c7f3d9ccafdb931729b8">SetVertical</a> (bool vertical)</td></tr>
<tr class="separator:ae4669a034a42c7f3d9ccafdb931729b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afab1fb45a13269d7b77770654d93e658"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#afab1fb45a13269d7b77770654d93e658">SetAnimHint</a> (const char *anim_hint)</td></tr>
<tr class="separator:afab1fb45a13269d7b77770654d93e658"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283133e56403993d5aa2ca8990eb48be"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a283133e56403993d5aa2ca8990eb48be">SetLoop</a> (bool loop)</td></tr>
<tr class="separator:a283133e56403993d5aa2ca8990eb48be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a569aff7638485a152a1f0278f1bb5a58"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a569aff7638485a152a1f0278f1bb5a58">SetDragThreshold</a> (uint32_t drag_threshold)</td></tr>
<tr class="separator:a569aff7638485a152a1f0278f1bb5a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe4d3e010ed12bde4113f635d5c1059"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#acbe4d3e010ed12bde4113f635d5c1059">SetAnimatingTime</a> (uint32_t animating_time)</td></tr>
<tr class="separator:acbe4d3e010ed12bde4113f635d5c1059"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a764c6cb0143ae2ab5c0447b1a91fc15f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a764c6cb0143ae2ab5c0447b1a91fc15f">RemoveIndex</a> (uint32_t index)</td></tr>
<tr class="separator:a764c6cb0143ae2ab5c0447b1a91fc15f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15fe86196171eb7038d05cdacdcde8a9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a15fe86196171eb7038d05cdacdcde8a9">GetVertical</a> () const</td></tr>
<tr class="separator:a15fe86196171eb7038d05cdacdcde8a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a6f3579bbea393233c883315b64a1b6"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a1a6f3579bbea393233c883315b64a1b6">GetAutoPlay</a> () const</td></tr>
<tr class="separator:a1a6f3579bbea393233c883315b64a1b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7911b38463f37a4e320b897ea438931"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#af7911b38463f37a4e320b897ea438931">GetLoop</a> () const</td></tr>
<tr class="separator:af7911b38463f37a4e320b897ea438931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab852f04bc198c95a81716b6e44dde9d2"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#ab852f04bc198c95a81716b6e44dde9d2">GetAnimHint</a> () const</td></tr>
<tr class="separator:ab852f04bc198c95a81716b6e44dde9d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5967bda2a1c877dbd5d37d72a83602fc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a5967bda2a1c877dbd5d37d72a83602fc">GetDragThreshold</a> () const</td></tr>
<tr class="separator:a5967bda2a1c877dbd5d37d72a83602fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d19b5c84f4b6a36df601ef93dad2605"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a6d19b5c84f4b6a36df601ef93dad2605">GetAnimatingTime</a> () const</td></tr>
<tr class="separator:a6d19b5c84f4b6a36df601ef93dad2605"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac8d128b16fddea1c6f7d3d255829ab89"><td class="memItemLeft" align="right" valign="top"><a id="ac8d128b16fddea1c6f7d3d255829ab89"></a>
static <a class="el" href="class_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:ac8d128b16fddea1c6f7d3d255829ab89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8abb89632d25bb5979a0b72bd72d43d4"><td class="memItemLeft" align="right" valign="top"><a id="a8abb89632d25bb5979a0b72bd72d43d4"></a>
static <a class="el" href="class_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a8abb89632d25bb5979a0b72bd72d43d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f440d575ceae866e1a8063c415a8b28"><td class="memItemLeft" align="right" valign="top"><a id="a9f440d575ceae866e1a8063c415a8b28"></a>
static <a class="el" href="class_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a9f440d575ceae866e1a8063c415a8b28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39108b0bcd6d6667150fb1e1dbb99f5e"><td class="memItemLeft" align="right" valign="top"><a id="a39108b0bcd6d6667150fb1e1dbb99f5e"></a>
static <a class="el" href="class_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a39108b0bcd6d6667150fb1e1dbb99f5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45e849b07d79b8f5eaf19a23671e4d82"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_view.html#a45e849b07d79b8f5eaf19a23671e4d82">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a45e849b07d79b8f5eaf19a23671e4d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑动视图。</p>
<p>滑动视图可以管理多个页面，并通过滑动来切换当前页面。也可以管理多张图片，让它们自动切换。</p>
<p>slide_view_t是widget\_t的子类控件，widget_t的函数均适用于slide_view_t控件。</p>
<p>在xml中使用"slide\_view"标签创建滑动视图控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">slide_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">view</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">slide_view</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/ui/slide_view.xml">slide_view.xml</a></p>
<p>在c代码中使用函数slide_view_create创建滑动视图控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slide_view.c">slide_view demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和指示器的图标等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;dot&quot;</span> <span class="keyword">active_icon</span>=<span class="stringliteral">&quot;active_dot&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>如果希望背景图片跟随滚动，请将背景图片设置到页面上，否则设置到slide_view上。 </p>
</blockquote>
<blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L458">theme default</a> </p>
</blockquote>
</blockquote>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a45e849b07d79b8f5eaf19a23671e4d82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45e849b07d79b8f5eaf19a23671e4d82">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSlideView::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a6d19b5c84f4b6a36df601ef93dad2605"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d19b5c84f4b6a36df601ef93dad2605">&#9670;&nbsp;</a></span>GetAnimatingTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlideView::GetAnimatingTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>动画时间（单位：毫秒）。 </p>

</div>
</div>
<a id="ab852f04bc198c95a81716b6e44dde9d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab852f04bc198c95a81716b6e44dde9d2">&#9670;&nbsp;</a></span>GetAnimHint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TSlideView::GetAnimHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>页面切换效果。 </p>

</div>
</div>
<a id="a1a6f3579bbea393233c883315b64a1b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a6f3579bbea393233c883315b64a1b6">&#9670;&nbsp;</a></span>GetAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TSlideView::GetAutoPlay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自动播放。0表示禁止自动播放，非0表示自动播放时每一页播放的时间。 </p>

</div>
</div>
<a id="a5967bda2a1c877dbd5d37d72a83602fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5967bda2a1c877dbd5d37d72a83602fc">&#9670;&nbsp;</a></span>GetDragThreshold()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlideView::GetDragThreshold </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>拖动临界值。 </p>

</div>
</div>
<a id="af7911b38463f37a4e320b897ea438931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7911b38463f37a4e320b897ea438931">&#9670;&nbsp;</a></span>GetLoop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TSlideView::GetLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>循环切换模式。</p>
<p>向后切换：切换到最后一页时，再往后切换就到第一页。 向前切换：切换到第一页时，再往前切换就到最后一页。 </p>

</div>
</div>
<a id="a15fe86196171eb7038d05cdacdcde8a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15fe86196171eb7038d05cdacdcde8a9">&#9670;&nbsp;</a></span>GetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TSlideView::GetVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否为上下滑动模式。 </p>

</div>
</div>
<a id="a764c6cb0143ae2ab5c0447b1a91fc15f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a764c6cb0143ae2ab5c0447b1a91fc15f">&#9670;&nbsp;</a></span>RemoveIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::RemoveIndex </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>删除指定序号页面。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>删除页面的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af14cd62b4ea83f3356436859930c530a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af14cd62b4ea83f3356436859930c530a">&#9670;&nbsp;</a></span>SetActive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetActive </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置当前页的序号(默认启用动画)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>当前页的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aeff63bd31dedd512330e4ca28d56675b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeff63bd31dedd512330e4ca28d56675b">&#9670;&nbsp;</a></span>SetActiveEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetActiveEx </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>animate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置当前页的序号。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>当前页的序号。 </td></tr>
    <tr><td class="paramname">animate</td><td>是否启用动画。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acbe4d3e010ed12bde4113f635d5c1059"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbe4d3e010ed12bde4113f635d5c1059">&#9670;&nbsp;</a></span>SetAnimatingTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetAnimatingTime </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>animating_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置动画时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">animating_time</td><td>动画时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afab1fb45a13269d7b77770654d93e658"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afab1fb45a13269d7b77770654d93e658">&#9670;&nbsp;</a></span>SetAnimHint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetAnimHint </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anim_hint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置页面切换动画。</p>
<p>anim_hint取值如下：</p>
<p>"translate"：平移。 "overlap"：覆盖。 "overlap\_with\_alpha"：覆盖并改变透明度。</p>
<blockquote class="doxtable">
<p>使用"overlap"或"overlap\_with\_alpha"动画时，背景图片最好指定到page上。</p>
<p>使用"overlap\_with\_alpha"动画时，slideview的背景设置为黑色， 或slideview的背景设置为透明，窗口的背景设置为黑色，以获得更好的视觉效果和性能。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anim_hint</td><td>页面切换动画。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa44d24db7ac57f65db9c074d898aac72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa44d24db7ac57f65db9c074d898aac72">&#9670;&nbsp;</a></span>SetAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetAutoPlay </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>auto_play</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为自动播放模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_play</td><td>0表示禁止自动播放，非0表示自动播放时每一页播放的时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a569aff7638485a152a1f0278f1bb5a58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a569aff7638485a152a1f0278f1bb5a58">&#9670;&nbsp;</a></span>SetDragThreshold()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetDragThreshold </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>drag_threshold</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置拖拽临界值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">drag_threshold</td><td>拖动临界值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a283133e56403993d5aa2ca8990eb48be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a283133e56403993d5aa2ca8990eb48be">&#9670;&nbsp;</a></span>SetLoop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetLoop </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置循环切换模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否启用循环切换模式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae4669a034a42c7f3d9ccafdb931729b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4669a034a42c7f3d9ccafdb931729b8">&#9670;&nbsp;</a></span>SetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideView::SetVertical </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为上下滑动(缺省为左右滑动)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>TRUE表示上下滑动，FALSE表示左右滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
